projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9749eb
)
dm: core: Ignore disabled devices when binding
author
Simon Glass
<
[email protected]
>
Sun, 25 Jan 2015 15:27:16 +0000
(08:27 -0700)
committer
Simon Glass
<
[email protected]
>
Fri, 30 Jan 2015 00:09:57 +0000
(17:09 -0700)
We don't want to bind devices which should never be used.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Masahiro Yamada <
[email protected]
>
drivers/core/root.c
patch
|
blob
|
history
diff --git
a/drivers/core/root.c
b/drivers/core/root.c
index a5b0a615016fec116960b3bb2c12b6f00dd2f4b8..73e3c7228e300e67da317098160d9c9c988446b3 100644
(file)
--- a/
drivers/core/root.c
+++ b/
drivers/core/root.c
@@
-9,6
+9,7
@@
#include <common.h>
#include <errno.h>
+#include <fdtdec.h>
#include <malloc.h>
#include <libfdt.h>
#include <dm/device.h>
@@
-92,6
+93,10
@@
int dm_scan_fdt_node(struct udevice *parent, const void *blob, int offset,
if (pre_reloc_only &&
!fdt_getprop(blob, offset, "u-boot,dm-pre-reloc", NULL))
continue;
+ if (!fdtdec_get_is_enabled(blob, offset)) {
+ dm_dbg(" - ignoring disabled device\n");
+ continue;
+ }
err = lists_bind_fdt(parent, blob, offset, NULL);
if (err && !ret)
ret = err;